<script setup lang="ts">
import {DRAW_STATUS} from "~/const/common";

definePageMeta({
  layout:'admin',
  title:'提现列表',
});
const form=reactive({
  limit:20,
  page:1,
});
const {data:list,refresh}=await useServerGet('/finance/getWithdrawalList',form)
</script>

<template>
  <div>
    <el-card class="mt-4" v-if="list">
      <el-table
          ref="multipleTable1"
          :data="list.data?.list"
          tooltip-effect="dark"
          style="width: 100%"
          align="center"
      >
        <el-table-column prop="id" label="ID"></el-table-column>
        <el-table-column prop="user_id" label="用户ID"></el-table-column>
        <el-table-column prop="money" label="提现金额"></el-table-column>
        <el-table-column prop="status" label="状态">
          <template #default="{row}">
            {{DRAW_STATUS[row.status]}}
          </template>
        </el-table-column>
        <el-table-column prop="updated_at" label="更新时间"></el-table-column>
        <el-table-column prop="created_at" label="创建时间"></el-table-column>
        <el-table-column prop="remark" label="备注"></el-table-column>
      </el-table>
      <MyPage v-model:page="form.page" v-model:perpage="form.limit" v-model:total="list.data.total" @change="refresh"></MyPage>
      </el-card>
    </div>

</template>

<style scoped lang="scss">

</style>